import request from '@/utils/request'


export default {
    //课程列表 条件查询带分页
    getListPage(page,size,params){
        return request({
            url: `/cmsservice/course-selections/pageCourseSelection/${page}/${size}`,
            method: 'get', 
            params
        })
    },
    //根据id删除选课
    removeById(id) {
        return request({
        url: `/cmsservice/course-selections/removeCourseSelection/${id}`,
        method: 'post'
         })
    },
    //添加选课
    addInfo(data){
        return request({
            url: `/cmsservice/course-selections/addCourseSelection`,
            method: 'post',
            data
        })
    },
    //修改选课
    updateInfo(data){
        return request({
            url: `/cmsservice/course-selections/updateCourseSelection`,
            method: 'post',
            data          
        }) 
    },
    //id查询数据回显
    getInfoById(id){
        return request({
            url: `/cmsservice/course-selections/getCourseSelection/${id}`,
            method: 'get'          
        })
    }

}

